﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace BigPixels
{
    public partial class ColourPot : UserControl
    {
        public ColourPot()
        {
            InitializeComponent();
        }

        private void ColourPot_Load(object sender, EventArgs e)
        {

        }

        public Color Colour
        {
            get
            {
                return this.pictureBox1.BackColor;
            }
            set
            {
                if (value != this.pictureBox1.BackColor)
                {
                    this.pictureBox1.BackColor = value;
                    this.label1.Text = PixelValue.ColourToHexString(this.pictureBox1.BackColor);

                    this.Invalidate();
                }
            }
        }
    }
}
